package spec.lijunyao.unit3;

public class ball {
    String ballName;
    String ballDaxiao;
    String ballCaizi;
    String ballZhongliang;
    String ballRenqun;
    String getBallName(){return "我是排球";}
    void setBallName(String ballName){this.ballName=ballName;}
    String getBallDaxiao(){return "我的直径是30厘米";}
    void setBallDaxiao(String ballDaxiao){this.ballDaxiao=ballDaxiao;}
    String getBallCaizi(){return "我的材质是塑料";}
    void setBallCaizi(String ballCaizi){this.ballCaizi=ballCaizi;}
    String getBallZhongliang(){return "我的重量是0.5千克";}
    void setBallZhongliang(String ballZhongliang){this.ballZhongliang=ballZhongliang;}
    String getBallRenqun(){return "我适合年轻人使用";}
    void setBallRenqun(String ballRenqun){this.ballRenqun=ballRenqun;}
    ball(String ballName,String ballDaxiao,String ballCaizi,String ballZhongliang,String ballRenqun)
    {
        this.ballName=ballName;
        this.ballDaxiao=ballDaxiao;
        this.ballCaizi=ballCaizi;
        this.ballZhongliang=ballZhongliang;
        this.ballRenqun=ballRenqun;
    }
}
